package com.workManager.mapper;

import com.workManager.pojo.TbProject;
import com.workManager.pojo.TbProjectExample;
import com.workManager.vo.ProjectVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TbProjectMapper {
    int countByExample(TbProjectExample example);

    int deleteByExample(TbProjectExample example);

    int deleteByPrimaryKey(Integer projectId);

    int insert(TbProject record);

    int insertSelective(TbProject record);

    List<TbProject> selectByExample(TbProjectExample example);

    TbProject selectByPrimaryKey(Integer projectId);

    int updateByExampleSelective(@Param("record") TbProject record, @Param("example") TbProjectExample example);

    int updateByExample(@Param("record") TbProject record, @Param("example") TbProjectExample example);

    int updateByPrimaryKeySelective(TbProject record);

    int updateByPrimaryKey(TbProject record);

    TbProject selectByProjectName(String projectName);

    TbProject selectByProjectCode(String projectCode);

    int deleteByProjectIds(String[] projectIds);

    List<TbProject> queryByProjectStatus(@Param("cm") Map<String,Object> map);

    List<ProjectVo> query(@Param("cm") Map<String,Object> map);

    ProjectVo queryByCodeName(Map<String,Object> map);

}